﻿<Window x:Class="kursovaya.Windows.AccountingWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:kursovaya.Windows"
        mc:Ignorable="d"
        Title="AccountingWindow" Height="450" Width="800">
    <Grid Background="LightSeaGreen">
        <TabControl Grid.Column="0">
            <TabItem Header="Хозяйственный инвентарь">
                <ScrollViewer  Margin="10">
                    <DataGrid x:Name="InventoryDataGrid" AutoGenerateColumns="False" CanUserAddRows="False"
                              CanUserDeleteRows="False"
                              Background="{DynamicResource MaterialDesignPaper}"
                              BorderBrush="{DynamicResource MaterialDesignDivider}"
                              RowBackground="{DynamicResource MaterialDesignSelection}"
                              BorderThickness="1"
                              AlternatingRowBackground="{DynamicResource MaterialDesignTransparent}">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="ID" Binding="{Binding id}"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}" Width="80"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>

                            <DataGridTextColumn Header="Имя" Binding="{Binding Name}"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}" Width="*"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>

                            <DataGridTextColumn Header="Тип" Binding="{Binding Type}"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}" Width="*"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>

                            <DataGridTextColumn Header="Количество" Binding="{Binding Amount}"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}" Width="*"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>

                            <DataGridTextColumn Header="Описание" Binding="{Binding Description}" Width="*"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                        </DataGrid.Columns>
                    </DataGrid>
                </ScrollViewer>
            </TabItem>

            <TabItem Header="Технический персонал">
                <ScrollViewer Margin="10">
                    <DataGrid x:Name="TecniciansDataGrid" AutoGenerateColumns="False" CanUserAddRows="False"
                              CanUserDeleteRows="False"
                              Background="{DynamicResource MaterialDesignPaper}"
                              BorderBrush="{DynamicResource MaterialDesignDivider}"
                              RowBackground="{DynamicResource MaterialDesignSelection}"
                              BorderThickness="1"
                              AlternatingRowBackground="{DynamicResource MaterialDesignTransparent}">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="ID" Binding="{Binding id}" Width="Auto"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Имя" Binding="{Binding firstname}" Width="*"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Фамилия" Binding="{Binding lastname}" Width="*"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Отчество" Binding="{Binding middlename}" Width="*"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Возраст" Binding="{Binding age}" Width="Auto"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                            <DataGridTextColumn Header="Роль" Binding="{Binding role}" Width="*"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>

                            <DataGridTextColumn Header="Опыт работы" Binding="{Binding workexperience}" Width="Auto"
                                                FontSize="14" FontWeight="Bold"
                                                Foreground="{DynamicResource MaterialDesignBody}"
                                                HeaderStyle="{StaticResource MaterialDesignDataGridColumnHeader}">
                                <DataGridTextColumn.ElementStyle>
                                    <Style TargetType="{x:Type TextBlock}">
                                        <Setter Property="TextWrapping" Value="Wrap" />
                                    </Style>
                                </DataGridTextColumn.ElementStyle>
                            </DataGridTextColumn>
                        </DataGrid.Columns>
                    </DataGrid>
                </ScrollViewer>
            </TabItem>
        </TabControl>
    </Grid>
</Window>